﻿@model WebApp.CommandModelView
           
@{
    ViewBag.Title = "Listplats";
    Layout = "~/Views/Shared/_Layout_home.cshtml";
}


@foreach (var plat in Model.All_Plats)
{
    <div class="modal hide" id="myModal">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
        <h3>@plat.Nom</h3>
      </div>
      <div class="modal-body">
        <p>@plat.Description</p>
        <p>@plat.Prix</p>
      </div>
      <div class="modal-footer">
        <a href="#" class="btn" data-dismiss="modal">Fermer</a>
        <a href="/Home/AjouterPlat/@plat.Id" class="btn btn-primary">Ajouter</a>
      </div>
    </div>    
    <div id="latestReview">
    </div>
        <div class="span4" >
        @if (plat.Nom != null)
        {           
            <a data-toggle="modal" href="#myModal" >
            <img src="@Url.Content("~/Content/img/img1.jpg")" alt=""/>                            
            <h2>@plat.Nom</h2>
            </a>
        }
        </div>
    
}

<script>
    $(document).ready(function () {
        $('#myModal').modal({ show: false })
    });
</script>


@section RightBar{
    <div class="span3">
        @Html.Partial("_Right_Column")                                
    </div>
}